function lowClone(obj) {
    let Obj = {};
    for (const key in obj) {
        if (obj.hasOwnProperty(key)) {
            Obj[key] = obj[key];
        }
    }
    return Obj;
}
let obj = { b: 1 }
console.log(lowClone({ a: 1, obj }).obj.b = 2);
console.log(obj);


